package com.newbookstore.Repository;

import com.newbookstore.Model.Bookstore;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface BookstoreRepository extends JpaRepository<Bookstore,Long> {
//    @Query("select a from Bookstore a where a.name like %:personName%")@Param("bookname")
    List<Bookstore> findAllByName( String bookname);
}
